home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
system
/
almdn102.zip
/
ALARMBAT.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-01-26
|
1KB
|
44 lines
@echo off
echo.
echo Alarm v1.02 ∙ Copyright (c) 1994-95 by Dale Nurden
echo.
if %1. == . goto Error
if not exist %1\ALARMTSR.COM goto Error
if not exist %1\ALARM.EXE goto Error
echo You are about to have changes made to your AUTOEXEC.BAT file.
echo The original file will be renamed to AUTOEXEC.OLD, so you can always
echo undo any changes made here by executing the following instruction:
echo.
echo COPY C:\AUTOEXEC.OLD C:\AUTOEXEC.BAT
echo.
echo If you would like these changes to be made, press ENTER now.
echo Otherwise, press Ctrl-Break or Ctrl-C to cancel.
pause > nul
copy C:\AUTOEXEC.BAT C:\AUTOEXEC.OLD > nul
echo %1\ALARM /U >> C:\AUTOEXEC.BAT
echo %1\ALARMTSR >> C:\AUTOEXEC.BAT
echo.
echo Changes have been made.
goto End
:Error
echo You must specify the complete path to the directory containing the
echo ALARM program files when running this batch file. This program assumes
echo your AUTOEXEC.BAT file is in the root of C:\.
echo.
echo NB! Ensure that you only give the path up to the directory name. Do not
echo add a filename or a backslash; that will be done for you.
echo.
echo *** THIS IS WRONG! ----- ALARMBAT C:\ALARM\ALARM.EXE
echo *** THIS IS WRONG! ----- ALARMBAT C:\ALARM\
echo.
echo You should type something like this:
echo ALARMBAT C:\ALARM
:End
echo.